select * from faturamento_imagem where filial like '037%'
and emissao >= '20060601'
and emissao <= '20060630'
order by emissao, numero_fiscal

select * from faturamento_imagem where filial like '037%'
and emissao >= '20060601'
and emissao <= '20060630'
and natureza_operacao_codigo in ('1.202','2.202')
order by emissao, numero_fiscal

select * from faturamento_imagem where filial like '037%'
and emissao >= '20060601'
and emissao <= '20060630'
and natureza_operacao_codigo in ('5.929','6.152','5.152','5.552','6.552','6.929','5.557','6.557')
order by emissao, numero_fiscal